@extends('layout.admin')
@section('title','编辑专家')
@section('content')
    <div class="col-md-12" id="content" >
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
            <div class="app_content_div" id="app_content_div_301Index">
                <h3>编辑专家</h3>
            </div>


            <form class="form-horizontal"  method="post" action="/adm/master-edit/{{$master->id}}">
                <input type="hidden" name="_token" id="_token" value="{{csrf_token()}}" />
                <div class="form-group">
                    <label for="doc_name" class="col-sm-2 control-label"><span style="color:red;">*</span>姓名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="name" name="name" value="{{$master->name}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="upload_file" class="col-sm-2 control-label"><span style="color:red;">*</span>缩略图</label>
                    <div class="col-sm-10">
                        <input  id="upload_file" name="upload_file"  type="file" onchange="saveThumb()"/>
                        <input type="hidden" class="form-control" id="photo" name="photo"  >
                        <img style="width:160px;height:200px;" alt="" id="thumb" src=""/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="doc_position" class="col-sm-2 control-label"><span style="color:red;">*</span>科室</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="keshi" name="keshi" value="{{$master->keshi}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="doc_department" class="col-sm-2 control-label"><span style="color:red;">*</span>职称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id=“zhicheng" name="zhicheng" value="{{$master->zhicheng}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="doc_department" class="col-sm-2 control-label"><span style="color:red;">*</span>职务</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id=“zhiwu" name="zhiwu" value="{{$master->zhiwu}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="doc_department" class="col-sm-2 control-label"><span style="color:red;">*</span>医院</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id=“hospital" name="hospital" value="{{$master->hospital}}">
                    </div>
                </div>
                <div class="form-group" >
                    <label for="doc_introduction" class="col-sm-2 control-label"><span style="color:red;">*</span>简介</label>
                    <div class="col-sm-10">
                        <script id="show" name="show" type="text/plain"></script>
                        <script type="text/javascript">
                            var editor = UE.getEditor('show')
                        </script>
                    </div>
                </div>
                <div class="form-group" >
                    <label for="doc_introduction" class="col-sm-2 control-label"><span style="color:red;">*</span>接受教育</label>
                    <div class="col-sm-10">
                        <script id="email" name="email" type="text/plain"></script>
                        <script type="text/javascript">
                            var editor = UE.getEditor('email')
                        </script>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default" >确定</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
